package com.mew.common.dc.mapper;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mew.common.entity.back.Admin;
import com.mew.common.vo.web.AdminVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ztq
 * @since 2020-11-30
 */
@DS("mew_record")
public interface AdminMapper extends BaseMapper<Admin> {
    List<Admin> getAdminRoles();

    Admin getAdminByUserName(@Param("username") String username);

    List<AdminVo> getAdminRoleNameByUsername(@Param("username") String username);
}
